package cate.common.table.farm.udgpalace.sheet;

import cate.common.table.ESheet;
import cate.common.table.farm.udgpalace.row.UdgPalaceGuessRow;

import java.util.Random;

public class UdgPalaceGuessSheet extends ESheet<UdgPalaceGuessRow> {
    @Override
    public String getSheetName() {
        return "地宫探险猜拳";
    }

    public UdgPalaceGuessRow getRow(int option) {
        if (option == 0) {
            option = 1;
        }
        int win = new Random().nextInt(3) + 1;
        return win == option ? get(1) : (Math.random() > 0.5 ? get(2) : get(3));
    }
}
